/**
* Created with CLion.
* User:Lenovo
* Date:2023-05-18
* Time:4:18
* Description:
*/
#ifndef AWA_STACK_H
#define AWA_STACK_H

#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <stdbool.h>

typedef int STDataType;

typedef struct Stack
{
    STDataType *a;
    int top;// 栈顶的位置
    int capacity;
} ST;

void STInit(ST *pst);
void STDestroy(ST *pst);
void STPush(ST *pst, STDataType x);
void STPop(ST *pst);
STDataType STTop(ST *pst);
bool STEmpty(ST *pst);
int STSize(ST *pst);

#endif //AWA_STACK_H
